<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//this.getLocationInfo();
		},
		onShow: function() {
			console.log('App Show')
            
		},
		onHide: function() {
			console.log('App Hide')
		},
        methods: {
            // getLocationInfo方法为用户点击后调用
			/*
            async getLocationInfo(){
                let _this = this
            	uni.getLocation({
            		type: 'gcj02',
            		success(res) {
            			let jwd = {
            				lng:res.longitude,//当前位置的经度
            				lat:res.latitude,//当前位置的纬度
            			}
                        _this.$u.vuex('vuex_theme', res);
            		},
            		complete(res) {
            			console.log('complete', res)
            			if (res.errMsg === 'getLocation:fail auth deny') {
            				uni.showToast({
            					'title': '请允许获取定位',
            					icon: 'error'
            				})
            			}
            		}
            	});
            },
			*/
        }
	}
</script>

<style lang="scss">
	/*每个页面公共css */
    @import "uview-ui/index.scss";
    page {
        background: #F3F4F6;
    }
</style>
